package com.cenwangkeji.resident.ui.adapter;

import android.support.annotation.Nullable;

import com.cenwangkeji.resident.R;
import com.cenwangkeji.resident.model.bean.QuestionBean;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

/**寻医问药 列表
 * @松 on 2019/10/31 19:38
 */
public class QuestionAdapter extends BaseQuickAdapter<QuestionBean.DataBean, BaseViewHolder> {
    public QuestionAdapter( @Nullable List<QuestionBean.DataBean> data) {
        super(R.layout.item_question, data);
    }


    @Override
    protected void convert(BaseViewHolder helper, QuestionBean.DataBean item) {
        helper.setText(R.id.tv_title, item.getWtbt());
        helper.setText(R.id.tv_content, item.getWdnr());
        helper.setText(R.id.tv_time, item.getCreateDate());
    }
}
